package com.shaoshaohuo.app.utils;

import com.shaoshaohuo.app.utils.city.Cityinfo;
import com.shaoshaohuo.app.view.citymenu.entity.Area;

/**
 * Cityinfo工具类
 * @author osborn
 *
 */
public class CityinfoUtil {

	public static Cityinfo convert(Area area) {
		if (area == null || area.getAreaId() == null) {
			return null;
		}
		Cityinfo ci = new Cityinfo();
		ci.setCity_name(area.getName());
		ci.setId(area.getAreaId());
		ci.setLat(area.getLat());
		ci.setLng(area.getLng());
		ci.setCityId(area.getAreaId());
		return ci;
	}
}
